*%
*% Copyright (c) 2015 DASCOM Ltd.
*%
*% All rights reserved.
*%
*% THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
*% ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
*% THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
*% PARTICULAR PURPOSE.
*%
*% File Name:
*%
*%    D300RW.GPD
*%
*% Abstract:
*%
*%    D300RW Printer Driver
*%

*%-------------------------------------------------------------------------
*% Version Section
*%-------------------------------------------------------------------------
*GPDFileName: "DC1320.gpd"
*GPDSpecVersion: "1.0"
*GPDFileVersion: "1.0"

*%-------------------------------------------------------------------------
*% Include Section
*%-------------------------------------------------------------------------
*%%% GPD files	 
*Include: "StdNames.gpd"

*%-------------------------------------------------------------------------
*%% Model Specific Global Entries
*%-------------------------------------------------------------------------
*ModelName:      "DASCOM DC-1320"
*ResourceDLL:		"DASCOMDCRC.DLL"
*MasterUnits:    PAIR(600, 600)
*PrinterType:    PAGE

*%-------------------------------------------------------------------------
*% Features and Options
*%-------------------------------------------------------------------------
*%******************************************************************************************
*%                                      Orientation
*%******************************************************************************************
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
      *rcNameID: =PORTRAIT_DISPLAY
			*Command: CmdSelect
			{
				*Order: DOC_SETUP.6
				*Cmd: ""
			}
		}
	    
	  *Option: LANDSCAPE_CC270
	  {
	      *rcNameID: =LANDSCAPE_DISPLAY 
				*Command: CmdSelect
				{
					*Order: DOC_SETUP.8
					*Cmd: ""
				}
    }
}

*%******************************************************************************************
*%                                      Input Bin
*%******************************************************************************************

*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: AUTO
    *Option: AUTO
    {
			*rcNameID: =AUTO_DISPLAY
			*Command: CmdSelect
			{
				*Order: DOC_SETUP.11
				*Cmd: ""
			} 
    }
}

*%******************************************************************************************
*%                                      Resolution
*%******************************************************************************************

*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: Normal
    *Option: Normal
    {
					*Name: "300 x 300" =DOTS_PER_INCH
	        *DPI: PAIR(300, 300)
	        *TextDPI: PAIR(300, 300)
	        *MinStripBlankPixels: 1
	        EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
	        *SpotDiameter: 100
					*Command: CmdBeginRaster { *Cmd : "" }
					*Command: CmdEndRaster { *Cmd : "" }
					*Command: CmdSendBlockData { *Cmd : "" }
					*Command: CmdSelect
					{
						*Order: DOC_SETUP.7
						*Cmd: ""
					}

    }
}
*%******************************************************************************************
*%                                      Paper Size
*%******************************************************************************************


*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: RETRANS
*%    *FeatureTyp:DOC_PROPERTY

    *Option: RETRANS
    {
        *rcNameID: 175
        *PageDimensions: PAIR(1297,2032)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(1297, 2032)
                *PrintableOrigin: PAIR(0, 0)
                *CursorOrigin: PAIR(0, 0)
								*Command: CmdSelect
								{
									*Order: DOC_SETUP.12
									*Cmd: ""
								}
            }
            *case: LANDSCAPE_CC270
            {
                *PrintableArea: PAIR(1297, 2032)
                *PrintableOrigin: PAIR(0, 0)
                *CursorOrigin: PAIR(0, 2032)
								*Command: CmdSelect
								{
									*Order: DOC_SETUP.12
									*Cmd: ""
								}
            }
        }
    }  
	*Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(1182, 1890)
        *MaxSize: PAIR(1300, 2056)
        *MaxPrintableWidth: 1297
        *MinLeftMargin: 0
        *switch: Orientation
        {
            *case: PORTRAIT
            {
			        *CustCursorOriginX: %d{0}
			        *CustCursorOriginY: %d{0}
			        *CustPrintableOriginX: %d{0}
			        *CustPrintableOriginY: %d{0}
			        *CustPrintableSizeX: %d{PhysPaperWidth }
			        *CustPrintableSizeY: %d{PhysPaperLength}
            }
            *case: LANDSCAPE_CC270
            {
			        *CustCursorOriginX: %d{0}
			        *CustCursorOriginY: %d{PhysPaperLength}
			        *CustPrintableOriginX: %d{0}
			        *CustPrintableOriginY: %d{0}
			        *CustPrintableSizeX: %d{PhysPaperWidth}
			        *CustPrintableSizeY: %d{PhysPaperLength}
            }
        }
        
        *Command: CmdSelect
        {
          	*Order: PAGE_SETUP.1
          	*Cmd: ""
        }
    }	
}  

*Feature: ColorMode
{
	*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
	*DefaultOption: Mono
	*Option: Mono
	{
		*rcNameID: =MONO_DISPLAY
		*DevNumOfPlanes: 0
		*DevBPP: 0
		*DrvBPP: 24
		*IPCallbackID: 1
		*Color?: FALSE
	}
}

*%===================================
*%%% Color
*%===================================
*%*Feature: ColorMode
*%{
*%	*rcNameID: =COLOR_PRINTING_MODE_DISPLAY
*%	*DefaultOption: Color
*%	*Option: Mono
*%	{
*%		*rcNameID: =MONO_DISPLAY
*%		*DevNumOfPlanes: 0
*%		*DevBPP: 0
*%		*DrvBPP: 8
*%		*%Color?: FALSE
*%		*IPCallbackID: 3
*%		*PaletteSize: 256
*%		*PaletteProgrammable? : TRUE
*%		*Command: CmdEnableDRC { *Cmd : "" }
*%		*Command: CmdDefinePaletteEntry { *Cmd : "" }
*%		*Command: CmdSelectPaletteEntry { *Cmd : "" }
*%		*Command: CmdSetSrcBmpWidth { *Cmd : "" }
*%		*Command: CmdSelect
*%		{
*%			*Order: PAGE_SETUP.16
*%			*Cmd: ""
*%		}
*%	}
*%	*Option: Color
*%	{
*%		*rcNameID: =24BPP_DISPLAY
*%		*DevNumOfPlanes: 0
*%		*DevBPP: 0
*%		*DrvBPP: 24
*%		*IPCallbackID: 5
*%		*PaletteSize: 256
*%		*PaletteProgrammable? : TRUE
*%		*Command: CmdEnableDRC { *Cmd : "" }
*%		*Command: CmdDefinePaletteEntry { *Cmd : "" }
*%		*Command: CmdSelectPaletteEntry { *Cmd : "" }
*%		*Command: CmdSetSrcBmpWidth { *Cmd : "" }
*%		*Command: CmdSelect
*%		{
*%			*Order: PAGE_SETUP.16
*%			*Cmd: ""
*%		}
*%	}
*%}
**%%===================================
*%%% 
*%%% Collate
*%===================================
*Feature: Collate
{
    *Name: "Collate"
    *DefaultOption: ON
    *Option: OFF
    {
        *rcNameID: =OFF_DISPLAY
    }
    *Option: ON
    {
        *rcNameID: =ON_DISPLAY
    }
}
*%******************************************************************************************
*%                                      Duplex Type
*%******************************************************************************************
*%*Feature: Duplex
*%{
*%	*rcNameID: =TWO_SIDED_PRINTING_DISPLAY
*%	*DefaultOption: NONE
*%	*Option: NONE
*%	{
*%		*rcNameID: =NONE_DISPLAY
*%		*Command: CmdSelect
*%		{
*%			*Order: DOC_SETUP.9
*%			*Cmd: ""
*%		}
*%	}
*%	*Option: VERTICAL
*%	{
*%		*rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
*%		*Command: CmdSelect
*%		{
*%			*Order: DOC_SETUP.9
*%			*Cmd: ""
*%		}
*%	}
*%	*Option: HORIZONTAL
*%	{
*%		*rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
*%		*Command: CmdSelect
*%		{
*%			*Order: DOC_SETUP.9
*%			*Cmd: ""
*%		}
*%	}
*%}



*%******************************************************************************************
*%                                      Doc setup commands
*%******************************************************************************************
*Command: CmdStartDoc
{
	*Order: DOC_SETUP.7
	*Cmd: ""
}
*Command: CmdStartPage
{
	*Order: PAGE_SETUP.1
	*Cmd: ""
}
*Command: CmdEndJob
{
	*Order: JOB_FINISH.1
	*Cmd: ""
}
*Command: CmdCopies
{
	*Order: DOC_SETUP.13
	*Cmd: ""
}

*%******************************************************************************************
*%                                      Cursor and Page Commands
*%******************************************************************************************
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*TextCaps: LIST(TC_CR_90,TC_UA_ABLE)
*MemoryUsage: LIST(FONT, RASTER, VECTOR)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 300
*YMoveUnit: 300
*EjectPageWithFF?: TRUE
*OutputDataFormat: H_BYTE
*OptimizeLeftBound?: TRUE
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT

*Command: CmdCR { *Cmd : "" }
*Command: CmdLF { *Cmd : "" }
*Command: CmdFF { *Cmd : "" }

